//
//  UIView+MAAdv.m
//  MateAdv
//
//  Created by 茶 on 2023/9/8.
//

#import "UIView+CAAdv.h"

@implementation UIView (CAAdv)

@end

@implementation MASConstraint (CAAdv)

- (MASConstraint *(^)(CGFloat))ca_offset{
    return ^id(CGFloat offset){
        self.offset = CARatioWidth(offset);
        return self;
    };
}

- (MASConstraint *(^)(CGFloat))ca_h_offset{
    return ^id(CGFloat offset){
        self.offset = CARatioHeight(offset);
        return self;
    };
}

@end
